Skip to main content

Article Empties

Frequency:

Article empties master data changes are required to be sent in near real-time. Any change to an interface field in the external system should trigger the interface.

Expected data:

List of empties for articles.

Technical:

If an article empties record does not exist in DSWMS, the record will be created.

If an article empties record already exists in DSWMS, the existing record will be updated with the new data.


POST https://{url}/v1/articles/empties

Create or update article empties.

Request Body

The request body is a JSON array of objects. Each object contains an article_id and an empties array with the empty container details.

Top-level object:

NameTypeRequiredDescription
article_idstringYesArticle unique identifier in ERP
emptiesarrayYesArray of empty objects for the article

Empty object (inside empties array):

NameTypeRequiredDescription
article_empty_idstringYesArticle empty unique identifier in ERP
plant_idstringYesPlant unique identifier in ERP
quantityintegerYesNumber of units that fit into the empty container

Request Example

[
{
"article_id": "0001",
"empties": [
{
"article_empty_id": "8829",
"plant_id": "102849",
"quantity": 6
},
{
"article_empty_id": "2028",
"plant_id": "102849",
"quantity": 12
}
]
},
{
"article_id": "0047",
"empties": [
{
"article_empty_id": "8829",
"plant_id": "102849",
"quantity": 6
}
]
}
]

Response

200: OK — Success

{
"success": true,
"message": null
}

400: Bad Request — Error

{
"success": false,
"message": "Article Empties update failed",
"errors": [
{
"article_id": "0001",
"error": "quantity must be numeric"
}
]
}